<!--
 * @Author: canlong.shen
 * @Date: 2021-11-01 13:15:33
 * @LastEditors: your name
 * @LastEditTime: 2021-11-01 14:57:17
 * @Description: file content
-->
<template>
  <div>
     <!-- {{aState}} -->
     {{aGetAA}}
     <!-- {{aGet}}
     {{a1Get}} -->
     <hr>
     <button @click="addClick">测试</button>
  </div>
</template>
<script>
import {mapState,mapGetters,mapMutations,mapActions} from 'vuex'
export default {
  data() {
    return {
    }
  },
  computed:{
      ...mapState('a/a-1',{
          a1State: state => state.aState,
      }),
      ...mapState('a',{
          aState: state => state.aState,
      }),
      ...mapGetters({
          aGet:'a/aGet',
          a1Get:'a/a-1/a1Get' 
         }),
      ...mapGetters('a',{
          aGetAA:'aGet',
         }),
  },
  methods: {
       ...mapMutations("a",["addAState"]),
       ...mapActions("a",["triggerAddAState"]),
       addClick(){
           console.log("addClick")
        //    this.addAState()
           this.triggerAddAState()
       }
  },
}
</script>
<style lang="less">
</style>